#include <STC89C5xRC.H>
#include "LCD1602.H"
#include "delay.h"
#include "XPT2046.H"

unsigned int advalue; 

void main()
{
	LCD_Init();
	LCD_ShowString(1,1,"ADJ  NTC  RG");
	while(1)
	{
		advalue=xpt2046_readad(xpt2046_XP_8);
		LCD_ShowNum(2,1,advalue,3);
		advalue=xpt2046_readad(xpt2046_YP_8);
		LCD_ShowNum(2,6,advalue,3);
		advalue=xpt2046_readad(xpt2046_VBAT_8);
		LCD_ShowNum(2,10,advalue,3);
		Delayms(100);
	}

}